//
//  TopicViewController.m
//  BeanTrip
//
//  Created by dlios on 15-6-30.
//  Copyright (c) 2015年 PandaGroup. All rights reserved.
//

#import "TopicViewController.h"
#import "FirstTopicModel.h"
#define WIDTH self.view.frame.size.width
#define HEIGHT self.view.frame.size.height
#import "HTTPTool.h"



@interface TopicViewController ()
{
    UIWebView *webView;
}

@end

@implementation TopicViewController
- (void)dealloc
{
    [_urlStr release];
    [_titleName release];
    [super dealloc];
}
- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    
    self.title = self.titleName;
    
//    self.navigationItem.leftBarButtonItem = [[UIBarButtonItem alloc]initWithBarButtonSystemItem:UIBarButtonSystemItemRewind target:self action:@selector(clickPop:)];
    
//    self.navigationItem.leftBarButtonItem = [[UIBarButtonItem alloc] initWithTitle:@"返回" style:UIBarButtonItemStylePlain target:self action:@selector(clickPop:)];
    
    //创建webview
    webView = [[UIWebView alloc] initWithFrame:CGRectMake(0, 0,WIDTH, HEIGHT )];
 
    NSURLRequest *request = [NSURLRequest requestWithURL:[NSURL URLWithString:self.urlStr]];
    [self.view addSubview:webView];
    [webView loadRequest:request];

    
}


- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
